import React from 'react';


const Loading: React.FC<{ text?: string }> = (props) => {
    const t = base.translate().t;
    return (
        <div className="component-loading">
            <div className="loading-container">
                <div className="loading-icon">
                    <i className="bi bi-robot"></i>
                </div>
                <div className="loading-text">
                    {props.text || t('LOADING.TEXT')}
                </div>
                {
                    /*
                        <NavLink to="/" className="loading-link">
                            {t('LOADING.HOME')}
                        </NavLink>
                    */
                }
            </div>
        </div>
    );
};

export default Loading; 